package com.example.graduation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 *
 * </p>
 *
 * @author xyc
 * @since 2022-03-23
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Notice对象", description = "")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通知id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发送者id")
    @TableField("sendId")
    private Integer sendid;

    @ApiModelProperty(value = "接收者id")
    @TableField("acceptId")
    private Integer acceptid;

    @ApiModelProperty(value = "图片")
    private String photo;

    @ApiModelProperty(value = "通知内容说明")
    private String content;

    @ApiModelProperty(value = "消息通知时间")
    @TableField("createTime")
    private Long createtime;

    @ApiModelProperty(value = "消息状态 0为未读 1为已读")
    private Integer status;

    @ApiModelProperty(value = "消息类型 0为系统消息 1为关注内容通知 2警告通知 3活动通知 4用户申请消息")
    private Integer type;

    @ApiModelProperty(value = "收或者发 0表示收 1表示发送")
    @TableField("sendoraccept")
    private Integer sendoraccept;

    @ApiModelProperty(value = "商品id")
    @TableField("goodsId")
    private Integer goodsId;

    @ApiModelProperty(value = "商品id")
    @TableField("num")
    private Integer num;

    @TableField(exist = false)
    private User user;


}
